package com.ascent.classes;

public class User {
    private int uid;             //表示用户ID标识号，是自动递增的主键
    private String username;     //表示用户名称
    private String password;     //表示用户密码
    private String companyname;  //表示用户公司名称
    private String city;         //表示用户生活城市
    private String job;          //表示用户工作
    private String tel;          //表示用户电话
    private String email;        //表示用户电子邮件地址
    private String country;      //表示用户国家
    private String zip;          //表示地区邮政编码
    private String companyaddress;//表示用户公司地址
    private String superuser;     //表示用户权限标志1.普通注册用户2.高权限用户3.管理员
    private String note;          //表示备注
    private String fullname;      //表示全名
    private String title;         //表示称呼
    private int del_flag;         //表示锁定标志位

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", companyname='" + companyname + '\'' +
                ", city='" + city + '\'' +
                ", job='" + job + '\'' +
                ", tel='" + tel + '\'' +
                ", email='" + email + '\'' +
                ", country='" + country + '\'' +
                ", zip='" + zip + '\'' +
                ", companyaddress='" + companyaddress + '\'' +
                ", superuser='" + superuser + '\'' +
                ", note='" + note + '\'' +
                ", fullname='" + fullname + '\'' +
                ", title='" + title + '\'' +
                ", del_flag=" + del_flag +
                '}';
    }

    public User() {
    }

    public User(String username, String password, String companyname, String city, String job, String tel, String email, String country, String zip, String companyaddress) {
        this.username = username;
        this.password = password;
        this.companyname = companyname;
        this.city = city;
        this.job = job;
        this.tel = tel;
        this.email = email;
        this.country = country;
        this.zip = zip;
        this.companyaddress = companyaddress;
    }

    public User(int uid, String username, String password, String companyname, String city, String job, String tel, String email, String country, String zip, String companyaddress, String superuser, String note, String fullname, String title, int del_flag) {
        this.uid = uid;
        this.username = username;
        this.password = password;
        this.companyname = companyname;
        this.city = city;
        this.job = job;
        this.tel = tel;
        this.email = email;
        this.country = country;
        this.zip = zip;
        this.companyaddress = companyaddress;
        this.superuser = superuser;
        this.note = note;
        this.fullname = fullname;
        this.title = title;
        this.del_flag = del_flag;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCompanyname() {
        return companyname;
    }

    public void setCompanyname(String companyname) {
        this.companyname = companyname;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getZip() {
        return zip;
    }

    public void setZip(String zip) {
        this.zip = zip;
    }

    public String getCompanyaddress() {
        return companyaddress;
    }

    public void setCompanyaddress(String companyaddress) {
        this.companyaddress = companyaddress;
    }

    public String getSuperuser() {
        return superuser;
    }

    public void setSuperuser(String superuser) {
        this.superuser = superuser;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getDel_flag() {
        return del_flag;
    }

    public void setDel_flag(int del_flag) {
        this.del_flag = del_flag;
    }
}
